import * as types from '@/stores/types'

const mutations = {
  [types.COMMON_LOGIN] (state, auth) {
    state.token = auth.token
    state.auth = auth
    console.log('mutations login', new Date().getTime())
  },
  [types.COMMON_LOGOUT] (state, data) {
    state.token = ''
    state.auth = {}
    console.log('mutations logout', new Date().getTime())
  }
}

export default mutations
